package com.itheima.UDP.组播广播;

import java.net.*;

public class ClientDemo2 {
    public static void main(String[] args) throws SocketException, UnknownHostException {
        DatagramSocket ds = new DatagramSocket();

        String s="广播,hello";
        byte[] bys = s.getBytes();
        InetAddress address=InetAddress.getByName("255.255.255.255");
        int port=10000;
        DatagramPacket bp = new DatagramPacket(bys, bys.length);    //写错了

    }
}
